{extend name="$member_style_layout" /}

{block name="title"}有分销收益的内容{/block}
{block name="content"}
 
<link rel="stylesheet" href="__STATIC__/css/waplistshop.css">
<div class="MyshopBox">

<ul class="qb_ui_page_menu">
		{volist name=":model_config()" id="rs"}
			<li ><a href="{:urls('fx',['mid'=>$rs.id])}" class="{$mid==$rs['id']?'red':''}">{$rs.title}</a></li>				
		{/volist}	
	</ul>

{volist name="listdb" id="rs"}
	<div class="ListShop">
		<dl>
			<dt><a href="{:iurl('content/show',['id'=>$rs.id])}?p_uid={$userdb.uid}&p_id={$rs.id}"><img src="{$rs.picurl}" onerror="this.src='__STATIC__/images/nopic.png';"/></a></dt>
			<dd>
				<div class="t"><a href="{:iurl('content/show',['id'=>$rs.id])}?p_uid={$userdb.uid}&p_id={$rs.id}" target="_blank">{$rs.title}</a></div>
				<div class="f"><a href="{$rs.sort_url}" target="_blank">{$rs.sort_name}</a></div> 				
				<div>优惠价：{$rs.price>0?$rs.price:' '}元</div> 
				<div>各集总价：{$rs.total_money>0?$rs.total_money:' '}元</div> 
				<div>1级分销最大收益：{$rs.fx1_money}元</div>
				{if $rs.fx2_money>0}<div>2级分销收益：{$rs.fx2_money}元</div>	{/if}
				{if $rs.fx3_money>0}<div>3级分销收益：{$rs.fx3_money}元</div>	{/if}
			</dd>
		</dl>
		<div class="submit">
		<a href="{:urls('youhui/add',['aid'=>$rs.id])}" class="dels">创建优惠券</a>
			<a href="{:iurl('content/show',['id'=>$rs.id])}?p_uid={$userdb.uid}&p_id={$rs.id}">转发分销</a> 
		</div>
	</div>
{/volist}
	<div class="Showpage">{$pages}</div>
</div>

{/block}